package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.MutableLiveData

/**
 * @author Lin
 * @date 2022/1/12
 * @function
 */
data class BannerViewModel(
    val id:Int,
    val title:String,
    val imagePath: String,
    val url:String,
    private val bannerItemClickAction:MutableLiveData<BannerViewModel>
) {

    fun onBannerItemClick(){
        bannerItemClickAction.postValue(this)
    }
}